﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.ContentTypes.CandidatesContentTypes
{
	/// <summary>
	/// Metadata class of "Test result" content type
	/// </summary>
	public class TestResultContentType : ResultContentType
	{
		protected override string GetContentTypeID()
		{
			return Settings.Default.ContentType_TestResult_ID;
		}

		protected override string GetNameResourceKey()
		{
			return "ContentType_TestResult_Name";
		}

		protected override string GetDescriptionResourceKey()
		{
			return "ContentType_TestResult_Description";
		}

		protected override List<ListColumn> GetChildListColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
			                           		SiteColumns.TestTypeLookupColumn,
			                           		SiteColumns.TestResultPointsColumn,
			                           		SiteColumns.TestResultPointsMaxColumn,
			                           		SiteColumns.TestResultPercentageColumn
			                           	};
			return columns;
		}
	}
}
